<?php
/**
 * Created by PhpStorm.
 * User: GZJ
 * Date: 2017/7/29
 * Time: 13:54
 */
namespace Home\Controller;
use Think\Controller;
class DhtController extends Controller{
    public function __construct()
    {
        //必须先调用父类的
        parent::__construct();
        $catModel = D('Admin/Category');
        $catData = $catModel->getdht();
        $this->assign('catData',$catData);
//        echo'<pre>';
//        var_dump($catData);exit();
    }
}